`ifndef BASE_PKG_SV
 `define BASE_PKG_SV

package base_pkg;
   
`define print(v) $display(`"variable v = %h`", v)

function automatic int log2(input int n);
   if(n<=1)
	 return 0;
   log2 = 0;
   while(n > 1) begin
	  n = n/2;
	  log2++;
   end
   return log2;
endfunction // log2


endpackage // base_pkg
   
   import base_pkg::*;
   
`endif
